package info.yangguo.service;

import info.yangguo.util.Transfer;

/**
 * @author:杨果
 * @date:16/10/1 下午12:20
 *
 * Description:
 *
 */
public class DecodeResponse {
    public static Object[] decode(String hexStr) {
        Object[] result = new Object[3];
        String value = Transfer.decodeVerify(hexStr);
        value = value.substring(2);
        String[] tmp1 = Transfer.decodePhoneNo(value);
        result[0] = tmp1[0];
        String[] tmp2 = Transfer.decodeSerialNo(tmp1[1]);
        result[1] = tmp2[0];
        result[2] = Transfer.decodeResponseType(tmp2[1]);
        return result;
    }
}
